import json


class ReadUtil:


    #封装读取数据文件的方法
    @classmethod
    def read_config(cls,file_path):
        with open(file_path,"r",encoding="utf-8") as f:
            data =json.load(f)
            #定义列表
            list1 = []
            for item in data:
                temp = tuple(item.values())
                list1.append(temp)

        return list1

if __name__ == '__main__':
    print(ReadUtil.read_config("../data/login.json"))


